import React, { RefObject } from 'react'
import {
  Form,
  Input,
  Button,
  Dialog,
  TextArea,
  DatePicker,
  Selector,
  Slider,
  Stepper,
  Switch,
} from 'antd-mobile'
import dayjs from 'dayjs'



function App() {
  return (
    <div>
      <Form
        layout="horizontal"
        footer={
          <Button block type="submit" color="primary" size="large">
            提交
          </Button>
        }
      >
        <Form.Header>登录</Form.Header>
        <Form.Item
          name="name"
          label="手机号"
          rules={[{ required: true, message: "姓名不能为空" }]}
        >
          <Input onChange={console.log} placeholder="请输入手机号" />
        </Form.Item>
        <Form.Item
          name="name"
          label="密码"
          rules={[{ required: true, message: "姓名不能为空" }]}
        >
          <Input onChange={console.log} placeholder="请输入密码"  />
        </Form.Item>
      </Form>
    </div>
  );
}

export default App;
